﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace AuroraPlatform.Tools
{
    public static class MessageHelper
    {
        public static void ShowMessage(string message)
        {
            MessageBox.Show(message, "提示信息", MessageBoxButton.OK);
        }

        public static void ShowWarning(string message)
        {
            MessageBox.Show(message, "警告信息", MessageBoxButton.OK);
        }

        public static void ShowError(string message)
        {
            MessageBox.Show(message, "错误信息", MessageBoxButton.OK);
        }

        public static bool Confirm(string message)
        {
            return MessageBox.Show(message, "提示信息", MessageBoxButton.OKCancel) == MessageBoxResult.OK;
        }
    }
}
